$(document).ready(function () {
        $("#sortbrand").change(function() {
            var sortbrand = $(this).val();
            var idbrand = $(this).attr('idbrand');
            //alert(sort);
                $.ajax({
                    url:"http://webmobi.com/index.php/default/product/sortbrand",
                    type:"POST",
                    data:"sortbrand="+sortbrand+"&idbrand="+idbrand,
                    async:true,
                    success: function(kq){
                        
                        $("#sanpham").html(kq);   
                }
            });
            });
});